package com.flyxiaozhu.erp.core.repositories;

import com.flyxiaozhu.erp.core.entities.GoodsCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Collection;
import java.util.List;

/**
 * @author flyxiaozhu
 * @date 2019-04-12 18:35
 */
public interface GoodsCategoryRepository extends JpaRepository<GoodsCategory,Long>,JpaSpecificationExecutor<GoodsCategory> {
    List<GoodsCategory> findByStatus(int status);

    List<GoodsCategory> findByPid(long pid);

    List<GoodsCategory> findByIdIn(Collection ids);
}
